package com.urea.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 终端预警日志对象 t_terminal_notice
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_terminal_notice")
@Data
@ToString
public class TerminalNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 终端id */
    @Excel(name = "终端id")
    @ApiModelProperty( "终端id")
    private Long terminalId;

    /** 类型;0尿素不足，1离线 */
    @Excel(name = "类型;0预警信息，1故障")
    @ApiModelProperty( "类型;0尿素不足，1离线")
    private Integer noticeType;

    /** 终端容量 */
    @Excel(name = "终端容量")
    @ApiModelProperty( "终端容量")
    private BigDecimal terminalCapacity;

    /** 预警信息 */
    @Excel(name = "预警信息")
    @ApiModelProperty( "预警信息")
    private String notice;

    /** 状态;0未处理，1已处理 */
    @Excel(name = "状态;0未处理，1已处理")
    @ApiModelProperty( "状态;0未处理，1已处理")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("处理时间")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedTime;
}
